<template>
  <div>
    <div class="dec-header">

      <div class="firi">
        <i class="iconfont icon-location"></i>
      </div>
      <div class="con-left-address">
        <van-dropdown-menu>
          <van-dropdown-item v-model="value1" :options="option1" />
        </van-dropdown-menu>

      </div>
      <div class="con-right-search">
        <i class="iconfont icon-sousuo" id="searchicon"></i>
        <router-link to="/showsearch" @click="goSearch"><input type="search" placeholder="找明星、演出、场馆"></router-link>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    goSearch() {
      this.$route.push('/showsearch')
    }
  },
  data() {
    return {
      value1: 0,
      value2: 'a',
      option1: [
        { text: '西安', value: 0 },
        { text: '北京', value: 1 },
        { text: '上海', value: 2 },
        { text: '广州', value: 3 },
        { text: '深圳', value: 4 }
      ]
    }
  }
}
</script>
<style scoped>
.dec-header {
  width: 90%;
  margin: auto;
  overflow: hidden;
  height: 1rem;
  display: flex;
  justify-content: space-between;
}
.con-left-address {
  width: 1rem;
  height: 1rem;
  margin:0.1rem 0.5rem 0 0;
  line-height: 1rem;
  font-weight: bold;
  /* background-color: aquamarine; */
}
.con-right-search {
  width: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.24rem;
  /* background-color: burlywood; */
}
#searchicon {
  padding-left: 0.2rem;
  font-size: 0.26rem;
  font-weight: bold;
  height: 0.6rem;
  line-height: 0.6rem;
  text-align: center;
  border-radius: 0.2rem 0 0 0.2rem;
  background-color: #eeebeb;
}
input {
  width: 4.2rem;
  height: 0.6rem;
  line-height: 0.6rem;
  display: block;
  background-color: #eeebeb;
  border-radius: 0 0.2rem 0.2rem 0;
  color: #999999;
}
.icon-location {
  width: 0.34rem;
  height: 1rem;
  line-height: 1rem;
  text-align: center;
  font-size: 0.40rem;
  color: #ff3f36;
  /* background: #000; */
}
.con-right-search i {
  width: 20%;
  font-size: 0.4rem;
  color: #646161;
}
</style>